@extends('mbcore.baseadmin::layout.iframe')
@section('title', $subtitle)

@section('content')
    <style>
        .radio label{width:60px;}

        /*div{*/
        /*    width:100%;*/
        /*}*/
        .radio label{
            width:60px;
        }
        .required_field{
            color:red;
        }
    </style>
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">

                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>{{ $subtitle }}</h5>
                    </div>
                    <div class="ibox-content">
                        {{--<form  class="form-horizontal" action="{{route('admin.platform.manager.add')}}" method="post">--}}
                        {!! Form::open(['enctype'=>'multipart/form-data','class'=>'form-horizontal']) !!}

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                活动名称
                            </label>
                            <div class="col-sm-10">
                                {{--                                <label>--}}
                                <input type="text" class="form-control" name="name"  value="{{ $data['name'] }}" readonly="readonly">
                                {{--                                </label>--}}
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                活动价格（元）
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="price"  value="{{ $data['price'] }}" readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                图片
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <div id="uploader-demo">
                                        <!--用来存放item-->
                                        <div id="fileList" class="uploader-list">
                                            <div id="WU_FILE_0" class="file-item thumbnail">
                                                <img src="{{ $data['image_path'] }}" alt="">
                                            </div>
                                        </div>
{{--                                        <div id="filePicker">选择图片</div>--}}
{{--                                        <input type="button" id="btn" value="开始上传">--}}
                                    </div>
                                </label>
{{--                                <input type="hidden" class="form-control" name="image" id="image" value="{{$data['image']}}">--}}
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                报名开始时间
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input class="form-control" name="signup_start_at"  value="{{$data['signup_start_at']}}" readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                报名结束时间
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input class="form-control" name="signup_end_at" value="{{$data['signup_end_at']}}" readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                活动开始时间
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input class="form-control" value="{{$data['start_at']}}" readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                活动结束时间
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input class="form-control" name="end_at" value="{{$data['end_at']}}" readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
                                活动地点
                            </label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name"  value="{{ $data['local'] }}" readonly="readonly">
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                报名人数
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="total_counts"  value="{{  $data['total_counts'] }}"  readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                联系人
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="contacts"  value="{{ $data['contacts'] }}"  readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
{{--                                <span style="color:red;">*</span>--}}
                                联系电话
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="contact_mobile"  value="{{ $data['contact_mobile'] }}"  readonly="readonly">
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label required_field">
                                <span style="color:red;">*</span>
                                活动详情
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <script id="editor" type="text/plain" style="width:1024px;height:500px;" name="detail" readonly="readonly">{!! $data['detail'] !!}</script>
                                </label>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">
                                {{--                                <span style="color:red;">*</span>--}}
                                排序
                            </label>
                            <div class="col-sm-10">
                                <label>
                                    <input type="text" class="form-control" name="sort"  value="{{ $data['sort']}}"  readonly="readonly">
                                </label>
                            </div>
                        </div>

{{--                        @include('common.alert_error')--}}

{{--                        <div class="form-group">--}}
{{--                            <div class="col-sm-4 col-sm-offset-2">--}}
{{--                                <button class="btn btn-primary" type="submit">保存内容</button>--}}
{{--                            </div>--}}
{{--                        </div>--}}
{{--                        {{ csrf_field() }}--}}
                        {{--                        <input type="hidden"  name="roles" value="center">--}}
                        {!! Form::close() !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop

@section('myscript')
    {{--    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/jquery.min.js"></script>--}}
    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/plugins/layer/laydate/laydate.js"></script>
    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="{{ config('mbcore_baseadmin.baseadmin_assets_path')}}/js/plugins/validate/messages_zh.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="{{ config('mbcore_ueditor.ueditor_assets_path')}}/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="{{ config('mbcore_ueditor.ueditor_assets_path')}}/ueditor.all.min.js"> </script>
{{--    @include('common.update_success_prompt_js',$params);--}}
    <script type="text/javascript">
        var ue = UE.getEditor('editor');
    </script>
@stop
